home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- // Description: This procedure is called to check if the hardware renderer
- // is currently using an animation format such as QuickTime or avi etc, in
- // which case we return $multiframe = true. Otherwise, we return
- // $multiframe = false.
- //
- global proc int checkMayaHardwareMultiframeFormat()
- {
- global string $imgExt[]; // This is the actual file extension
- global int $imgExtNum[]; // This is the corresponding internal value
-
- // If the file format array has not been initialized yet, do so.
- // This routine may be called in dynPaintMenus.mel during the
- // file save for PFX canvas images.
- //
- if (size( $imgExt ) == 0)
- {
- createImageFormats();
- }
-
- int $imageNum = `getAttr "hardwareRenderGlobals.imageFormat"`;
- string $imageType = "";
-
- for ($i=0; $i < size($imgExtNum); ++$i)
- {
- if ($imageNum == $imgExtNum[$i])
- {
- $imageType = $imgExt[$i];
- break;
- }
- }
-
- int $multiframe = multiframeFormat($imageType);
- return $multiframe;
-
- }
-